package entities 
{
	import pure.engine.Despair;
	import pure.engine.renderer.IAnimation;
	import pure.engine.status.motion.PlatformMotion;
	import pure.engine.entity.IEntity;
	import pure.engine.entity.IEntityFactory;
	import pure.engine.renderer.AnimationRenderer;
	import status.BulletStatus;
	
	/**
	 * ...
	 * @author Pure
	 */
public class PlatformGunner implements IEntityFactory 
{
	
	
	public function produce(entity:IEntity, wx:Number, wy:Number, args:Array = null):IEntity
	{
		var renderer:IAnimation = entity.createAnimationRenderer(null, 'r', true);

		renderer.playAndRepeat('despair');
		entity.addStatus(new BulletStatus());
		
		entity.visible = true;
		return entity;
	}
}

}